﻿@{
    ViewBag.Title = "Entitlements";
    ViewBag.PageJavascript = @Url.Content("~/Scripts/Entitlement/GetEntitlements.js");
}

<h2>Entitlements</h2>

@if (ViewBag.IsEmpty)
{
    <p>
        No entitlements have been created.
    </p>
}

<table id="list" class="scroll"></table>
<div id="pager" class="scroll" ></div>
<div class="ui-widget ui-widget-content ui-corner-all ui-jqdialog" id="AddLicenseEntitlementFormContainer">
    <form id="AddLicenseEntitlementForm" action="/Entitlement/NewLicenseEntitlement/" method="post" class="FormGrid">        
        <table class="EditTable">
            <tbody>
                <tr class="FormData">
                    <td class="CaptionTD">Customer</td>
                    <td class="DataTD"><input type='text' readonly="readonly" name="Customer" class='FormElement ui-widget-content ui-corner-all ui-state-disabled required' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Product</td>
                    <td class="DataTD"><input type='text' name="Product" class='FormElement ui-widget-content ui-corner-all required' size="80" /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">License</td>
                    <td class="DataTD"><input type='text' name="License" class='FormElement ui-widget-content ui-corner-all required' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Node</td>
                    <td class="DataTD"><input type='text' name="Node" class='FormElement ui-widget-content ui-corner-all required' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Valid From</td>
                    <td class="DataTD"><input type='text' name="ValidFrom" class='FormElement ui-widget-content ui-corner-all' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Valid To</td>
                    <td class="DataTD"><input type='text' name="ValidTo" class='FormElement ui-widget-content ui-corner-all' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD" colspan="2">
                        <a name="Submit" class="fm-button ui-state-default ui-corner-all submit">Submit</a>
                        <a name="Cancel" class="fm-button ui-state-default ui-corner-all">Cancel</a>
                    </td>    
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="ui-widget ui-widget-content ui-corner-all ui-jqdialog" id="ShowLicenseEntitlementsContainer">    
    <input type="hidden" id="CustomerEntitlementId" />
    <table id="entitlementsList" class="scroll"></table>
    <div id="entitlementsPager" class="scroll" ></div>
</div>



